﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class ParameterSet
   </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class ParameterSet
   ">
    <meta name="generator" content="docfx 2.52.0.0">
    
    <link rel="shortcut icon" href="../api/images/favicon.ico">
    <link rel="stylesheet" href="../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../styles/docfx.css">
    <link rel="stylesheet" href="../styles/main.css">
    <link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"> 
    <meta property="docfx:navrel" content="../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <script type="text/javascript" async="" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/MathJax.js?config=TeX-MML-AM_CHTML"></script>
    
    
    
  </head>  <body data-spy="scroll" data-target="#affix" data-offset="120">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../index.html">
                <img id="logo" class="svg" src="../api/images/favicon.svg" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="SpiceSharp.ParameterSets.ParameterSet">
  
  
  <h1 id="SpiceSharp_ParameterSets_ParameterSet" data-uid="SpiceSharp.ParameterSets.ParameterSet" class="text-break">Class ParameterSet
  </h1>
  <div class="markdown level0 summary"><p>The default implementation for a <a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a>. It uses reflection as a 
last line of defense.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">ParameterSet</span></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Algebra.RookPivoting-1.html">RookPivoting&lt;T&gt;</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Algebra.Solve.Markowitz-1.html">Markowitz&lt;T&gt;</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Bipolars.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Bipolars.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Capacitors.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Capacitors.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.CommonBehaviors.IndependentSourceParameters.html">IndependentSourceParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.CurrentControlledCurrentSources.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.CurrentControlledVoltageSources.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Diodes.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Diodes.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Inductors.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.JFETs.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.JFETs.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.LosslessTransmissionLines.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Mosfets.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Mosfets.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.MutualInductances.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.ParallelComponents.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Pulse.html">Pulse</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Pwl.html">Pwl</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Resistors.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Resistors.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Sine.html">Sine</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Subcircuits.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Switches.ModelParameters.html">ModelParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.Switches.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.VoltageControlledCurrentSources.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.VoltageControlledVoltageSources.Parameters.html">Parameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Components.VoltageDelays.VoltageDelayParameters.html">VoltageDelayParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.ParameterSets.ParameterSetCollection.html">ParameterSetCollection</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.BiasingParameters.html">BiasingParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.DCParameters.html">DCParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.DecadeSweep.html">DecadeSweep</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.Frequency.RuleParameters.html">RuleParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.FrequencyParameters.html">FrequencyParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.NoiseParameters.html">NoiseParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.ParameterSweep.html">ParameterSweep</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Simulations.TimeParameters.html">TimeParameters</a></div>
      <div class="level2"><a class="xref" href="SpiceSharp.Validation.ComponentRuleParameters.html">ComponentRuleParameters</a></div>
  </div>
  <div classs="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a></div>
    <div><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="SpiceSharp.ParameterSets.html">SpiceSharp.ParameterSets</a></h6>
  <h6><strong>Assembly</strong>: SpiceSharp.dll</h6>
  <h5 id="SpiceSharp_ParameterSets_ParameterSet_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public abstract class ParameterSet : IParameterSet, ICloneable</code></pre>
  </div>
  <h5 id="SpiceSharp_ParameterSets_ParameterSet_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class will use the <a class="xref" href="SpiceSharp.ParameterSets.IExportPropertySet-1.html">IExportPropertySet&lt;P&gt;</a> or <a class="xref" href="SpiceSharp.ParameterSets.IImportParameterSet-1.html">IImportParameterSet&lt;P&gt;</a>
if they are defined on the class to avoid reflection. If it isn&apos;t defined, it will fall back to
reflection.</p>
</div>
  <h3 id="constructors">Constructors
  </h3>
  <a id="SpiceSharp_ParameterSets_ParameterSet__ctor_" data-uid="SpiceSharp.ParameterSets.ParameterSet.#ctor*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet__ctor" data-uid="SpiceSharp.ParameterSets.ParameterSet.#ctor">ParameterSet()</h4>
  <div class="markdown level1 summary"></div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected ParameterSet()</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <a id="SpiceSharp_ParameterSets_ParameterSet_Clone_" data-uid="SpiceSharp.ParameterSets.ParameterSet.Clone*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_Clone" data-uid="SpiceSharp.ParameterSets.ParameterSet.Clone">Clone()</h4>
  <div class="markdown level1 summary"><p>Clones the instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected virtual ICloneable Clone()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><p>The cloned instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_CopyFrom_" data-uid="SpiceSharp.ParameterSets.ParameterSet.CopyFrom*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_CopyFrom_SpiceSharp_ICloneable_" data-uid="SpiceSharp.ParameterSets.ParameterSet.CopyFrom(SpiceSharp.ICloneable)">CopyFrom(ICloneable)</h4>
  <div class="markdown level1 summary"><p>Copies the contents of one interface to this one.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">protected virtual void CopyFrom(ICloneable source)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><span class="parametername">source</span></td>
        <td><p>The source parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.ArgumentException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> does not have the same type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_CreateParameterSetter_" data-uid="SpiceSharp.ParameterSets.ParameterSet.CreateParameterSetter*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_CreateParameterSetter__1_System_String_" data-uid="SpiceSharp.ParameterSets.ParameterSet.CreateParameterSetter``1(System.String)">CreateParameterSetter&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Creates an action that can set the parameter of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual Action&lt;P&gt; CreateParameterSetter&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Action</span>&lt;P&gt;</td>
        <td><p>An action that can set the parameter value, or <code>null</code> if the parameter could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_CreatePropertyGetter_" data-uid="SpiceSharp.ParameterSets.ParameterSet.CreatePropertyGetter*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_CreatePropertyGetter__1_System_String_" data-uid="SpiceSharp.ParameterSets.ParameterSet.CreatePropertyGetter``1(System.String)">CreatePropertyGetter&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Creates a function that can get the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual Func&lt;P&gt; CreatePropertyGetter&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Func</span>&lt;P&gt;</td>
        <td><p>A function that can get the property value, or <code>null</code> if the property could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_GetProperty_" data-uid="SpiceSharp.ParameterSets.ParameterSet.GetProperty*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_GetProperty__1_System_String_" data-uid="SpiceSharp.ParameterSets.ParameterSet.GetProperty``1(System.String)">GetProperty&lt;P&gt;(String)</h4>
  <div class="markdown level1 summary"><p>Gets the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual P GetProperty&lt;P&gt;(string name)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">P</span></td>
        <td><p>The value of the property.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Diagnostics.ParameterNotFoundException.html">ParameterNotFoundException</a></td>
        <td><p>Thrown if a parameter by the specified name could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_SetParameter_" data-uid="SpiceSharp.ParameterSets.ParameterSet.SetParameter*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_SetParameter__1_System_String___0_" data-uid="SpiceSharp.ParameterSets.ParameterSet.SetParameter``1(System.String,``0)">SetParameter&lt;P&gt;(String, P)</h4>
  <div class="markdown level1 summary"><p>Sets a parameter in the parameter set of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual void SetParameter&lt;P&gt;(string name, P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value that the parameter should be set to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><a class="xref" href="SpiceSharp.Diagnostics.ParameterNotFoundException.html">ParameterNotFoundException</a></td>
        <td><p>Thrown if a parameter by the specified name could not be found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_TryGetProperty_" data-uid="SpiceSharp.ParameterSets.ParameterSet.TryGetProperty*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_TryGetProperty__1_System_String___0__" data-uid="SpiceSharp.ParameterSets.ParameterSet.TryGetProperty``1(System.String,``0@)">TryGetProperty&lt;P&gt;(String, out P)</h4>
  <div class="markdown level1 summary"><p>Tries to get the value of a property of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool TryGetProperty&lt;P&gt;(string name, out P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the property.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value of the property if the property was found.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if the property was found and returned; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The property value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_TrySetParameter_" data-uid="SpiceSharp.ParameterSets.ParameterSet.TrySetParameter*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_TrySetParameter__1_System_String___0_" data-uid="SpiceSharp.ParameterSets.ParameterSet.TrySetParameter``1(System.String,``0)">TrySetParameter&lt;P&gt;(String, P)</h4>
  <div class="markdown level1 summary"><p>Tries to set a parameter in the parameter set of the specified type and with the specified name.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public virtual bool TrySetParameter&lt;P&gt;(string name, P value)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">name</span></td>
        <td><p>The name of the parameter.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">P</span></td>
        <td><span class="parametername">value</span></td>
        <td><p>The value that the parameter should be set to.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Boolean</span></td>
        <td><p><code>true</code> if a parameter was found and set succesfully; otherwise, <code>false</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">P</span></td>
        <td><p>The parameter value type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">name</code> is <code>null</code>.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="eii">Explicit Interface Implementations
  </h3>
  <a id="SpiceSharp_ParameterSets_ParameterSet_SpiceSharp_ICloneable_Clone_" data-uid="SpiceSharp.ParameterSets.ParameterSet.SpiceSharp#ICloneable#Clone*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_SpiceSharp_ICloneable_Clone" data-uid="SpiceSharp.ParameterSets.ParameterSet.SpiceSharp#ICloneable#Clone">ICloneable.Clone()</h4>
  <div class="markdown level1 summary"><p>Clones the instance.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">ICloneable ICloneable.Clone()</code></pre>
  </div>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><p>The cloned instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <a id="SpiceSharp_ParameterSets_ParameterSet_SpiceSharp_ICloneable_CopyFrom_" data-uid="SpiceSharp.ParameterSets.ParameterSet.SpiceSharp#ICloneable#CopyFrom*"></a>
  <h4 id="SpiceSharp_ParameterSets_ParameterSet_SpiceSharp_ICloneable_CopyFrom_SpiceSharp_ICloneable_" data-uid="SpiceSharp.ParameterSets.ParameterSet.SpiceSharp#ICloneable#CopyFrom(SpiceSharp.ICloneable)">ICloneable.CopyFrom(ICloneable)</h4>
  <div class="markdown level1 summary"><p>Copies the contents of one interface to this one.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">void ICloneable.CopyFrom(ICloneable source)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a></td>
        <td><span class="parametername">source</span></td>
        <td><p>The source parameter.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="exceptions">Exceptions</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Condition</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.ArgumentNullException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> is <code>null</code>.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.ArgumentException</span></td>
        <td><p>Thrown if <code data-dev-comment-type="paramref" class="paramref">source</code> does not have the same type.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="implements">Implements</h3>
  <div>
      <a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.ICloneable.html">ICloneable</a>
  </div>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="SpiceSharp.Utility.html#SpiceSharp_Utility_ThrowIfNull__1___0_System_String_">Utility.ThrowIfNull&lt;T&gt;(T, String)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_Parameters_SpiceSharp_ParameterSets_IParameterSet_">Documentation.Parameters(IParameterSet)</a>
  </div>
  <div>
      <a class="xref" href="SpiceSharp.Reflection.Documentation.html#SpiceSharp_Reflection_Documentation_ParameterValues__1_SpiceSharp_ParameterSets_IParameterSet_System_Boolean_">Documentation.ParameterValues&lt;T&gt;(IParameterSet, Boolean)</a>
  </div>
  <h3 id="seealso">See Also</h3>
  <div class="seealso">
      <div><a class="xref" href="SpiceSharp.ParameterSets.IParameterSet.html">IParameterSet</a></div>
  </div>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            
            <span>Generated by <strong>DocFX</strong></span>
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../styles/docfx.js"></script>
    <script type="text/javascript" src="../styles/main.js"></script>
  </body>
</html>
